/*
 * Copyright (c) 2019 DawnFramework. All Rights Reserved.
 * Licensed under the MIT (LICENSE) license.
 */
package org.dawn.common.core.mode;

import com.alibaba.fastjson.JSON;

/**
 * 继承此类后，调用 toJson 方法能序列化成 json 字符串
 * @author Willard Hu on 2017/4/25.
 */
public abstract class ToJson extends ToString {
    private static final long serialVersionUID = 6085985690259805203L;

    public String toJson() {
        return JSON.toJSONString(this);
    }
}
